package com.qfedu.roomselectservice.service.impl;

import com.qfedu.entity.Img;
import com.qfedu.roomselectservice.dao.RoomDAO;
import com.qfedu.roomselectservice.service.ImgService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 根据rid查询所有img
 * 作者：罗小宇
 * 日期：2020/7/3
 */
@Service
public class ImgServiceImpl implements ImgService {
    @Resource
    private RoomDAO roomDAO;

    @Override
    public List<Img> selectImgByRoomId(Integer rid) {
        List<Img> imgs = roomDAO.selectImgsByRoomId(rid);
        return imgs;
    }
}
